import axios from 'poros/http';

// const BASE_API = 'http://10.110.96.81:8030';
const BASE_API = '';
// 查询失销类别接口
export const postLoseList = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/loseReasonCfg/listByPage`,
    method: 'post',
    data,
  });
// 批量删除
export const postLoseDelete = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/loseReasonCfg/delete`,
    method: 'post',
    data,
  });
// 新增失销类别
export const postLoseInsert = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/loseReasonCfg/save`,
    method: 'post',
    data,
  });
// 查询失销分页接口
export const postLoseListByPage = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/lose/listByPage`,
    method: 'post',
    data,
  });
// 导出失销
export const postleadsBizSnapshoot = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/lose/export`,
    method: 'post',
    responseType: 'arraybuffer',
    hasInterceptors: true,
    data,
  });
// 失销原因列表
export const postloseReasonCfglist = data =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/loseReasonCfg/list`,
    method: 'post',
    data,
  });
